package top.continew.minithreadpool.policy;

import top.continew.minithreadpool.concurrent.ThreadPoolExecutor;

/**
 * 拒绝策略 - 静默丢弃
 */
public class DiscardPolicy implements RejectedExecutionHandler {
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        // 什么都不做，直接丢弃
    }
}
